#ifndef PRELISTWID_H
#define PRELISTWID_H
#include <QListWidget>
#include <QTreeWidgetItem>

class PreListWid : public QListWidget
{
    Q_OBJECT
public:
    PreListWid(QWidget* parent = nullptr);
    //virtual ~PreListWid();
private:
    QMap<QString,QListWidgetItem*> _set_items;
    void AddListItem(const QString& path);
    int _global;
    QPoint _pos_orgin;
    int _last_index;
public slots:
    void SlotUpPreList(QTreeWidgetItem*);
    void SlotUpSelect(QTreeWidgetItem*);
    void SlotItemPressed(QListWidgetItem* item);//点击item的时候触发(点击预览图的时候触发)
signals:
    void SigUpSelectShow(QString path);
};

#endif // PRELISTWID_H
